<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="format-detection" content="telephone=no" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0,  maximum-scale=1.0" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style" />
		<link rel="stylesheet" type="text/css" href="${ctxStatic}/shopcartstatic/css/public.css"/>
		<link rel="stylesheet" type="text/css" href="${ctxStatic}/shopcartstatic/css/reset.css"/>

	</head>

	<body id="body">
		<div class="home">

				<!-- 轮播图开始 -->
				<div id="tab">
					<c:forEach begin="0" end="3" items="${list}" var="lists">
					<a href=${lists.url}>	<img src=${lists.img} name="tabimg" class="tabimg"></a>
					</c:forEach>
				</div>
				<!-- 轮播图结束 -->
   

			<!-- 一级菜单-->
			<div class="g_nav">
			<ul class="clearfix">
				<c:forEach begin="0" end="6" items="${categorylist}"  var="list">
					<li>
						<a href=easyLife?index=1&categoryid=${list.id}>
							<img src="${list.icon}" alt="">
							<p>${list.name}</p>
						</a>
					</li>
				</c:forEach>
			</ul>
		</div>
			<br/>
			<!-- 内容 -->

			<div class="h_div1">
				<span>&nbsp;&nbsp;&nbsp;</span><span style="float: right;margin-right: 3% "><a style="color:#666;" onclick="easyLife()">更多&nbsp;>></a></span>
				<div class="h_div2">
					<c:forEach items="${categorylist1}" var="cate" begin="0" end="3">
					<div >
						<img src="${cate.icon}" onclick="window.location.href='${cate.url}'"/>
						<br/><span ></span>
					</div>
					</c:forEach>

				</div>

			</div><br>
			<span>&nbsp;&nbsp;&nbsp;我们的商品</span><span style="float: right;margin-right: 3% "><a style="color:#666;" ></a></span>
			<div class="h_div2">
				<c:forEach items="${products}" var="p" >
					<div >
						<img src="${p.imgList[0]}" onclick="window.location.href='easyLifedetails?productid=${p.id}'"/>
						<br/><span ></span>
					</div>
				</c:forEach>

			</div>

			<div style="height: 10%;width: 100%; float:left;"></div>


		</div>

		<script src="${ctxStatic}/shopcartstatic/js/jquery-1.6.2.min.js"></script>
		<script type="text/javascript" src="${ctxStatic}/shopcartstatic/js/public.js"></script>

		<!--底部导航栏 -->
		<div class="nav" id="tabbar"></div>
		
		<script type="text/javascript"> 
		$(function(){
   			document.getElementById('homes').setAttribute("src","${ctxStatic}/shopcartstatic/images/1.1.png");
		})
		</script>
		<script  type="text/javascript">
			function easyLife() {
				window.location.href="https://www.baidu.com"
			}
		</script>

	</body>


</html>
